﻿using System.Collections.Generic;
using System.Collections.Specialized;
using NPMonitor.DataModel;

namespace NPMonitor.Interfaces
{
    public interface INotificationStore
    {
        /// <summary>
        /// 根据用户Id，获取当前用户所有的Notification
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        IEnumerable<NotificationData> GetAllNotificationsByUserId(int userId);

        /// <summary>
        /// 更新用户的Setting信息
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="form"></param>
        void UpdateNotificationsByUserId(int userId, NameValueCollection form);
    }
}
